/**
 * @(#)DrmConnectionKeepAliveStrategy.java, 2018年10月16日.
 * <p>
 * Copyright 2018 Netease, Inc. All rights reserved.
 * NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.netease.yanxuan.qa.yx.yuheng.utils;

import org.apache.http.HttpResponse;
import org.apache.http.impl.client.DefaultConnectionKeepAliveStrategy;
import org.apache.http.protocol.HttpContext;

/**
 * 可动态配置干预的Connection KeepAlive策略实现
 *
 * @author machao
 */
public class DrmConnectionKeepAliveStrategy
        extends DefaultConnectionKeepAliveStrategy {

    @Override
    public long getKeepAliveDuration(HttpResponse response,
                                     HttpContext context) {
        long duration = super.getKeepAliveDuration(response, context);
        return duration;
    }

}
